package org.ytor.core.sysapi.user.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import org.ytor.core.model.BaseResp;
import io.swagger.v3.oas.annotations.media.Schema;
import org.ytor.core.sysapi.depart.resp.SysDepartResp;
import org.ytor.core.sysapi.user.model.SysUser;

import java.time.LocalDate;
import java.util.List;

/**
 * created by   on 2025年4月9日 23:03:21
 * <br/>
 * UserResp表实体类
 * <br/>
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description ="用户表")
public class SysUserResp extends BaseResp<SysUser, String> {

    /**
     * 用户名
     */
    @Schema(description ="用户名")
    private String userName;

    /**
     * 真实姓名
     */
    @Schema(description ="真实姓名")
    private String realName;

    /**
     * 头像
     */
    @Schema(description ="头像")
    private String avatar;

    /**
     * 手机号码
     */
    @Schema(description ="手机号码")
    private String phone;

    /**
     * 邮箱
     */
    @Schema(description ="邮箱")
    private String email;

    /**
     * 生日
     */
    @Schema(description = "生日")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    /**
     * 身份证
     */
    @Schema(description ="身份证")
    private String idCard;

    /**
     * 部门信息
     */
    @Schema(description ="部门信息")
    private List<SysDepartResp> departList;
}